package chen.web.config.spring;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import chen.web.forum.ForumAccountLoader;
import chen.web.forum.ForumAccountLoaderImpl;
import chen.web.user.AccountManager;

@Configuration
public class ForumAccountLoaderConfig {

	private @Autowired AccountManager am;
	
	public @Bean ForumAccountLoader forumAccountLoader(){
		ForumAccountLoader loader = new ForumAccountLoaderImpl(am);
		return loader;
	}
}
